home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr02 / ams520.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1995-03-06  |  5KB  |  183 lines

  1. @echo off
  2. if A==%1 goto doit
  3. if B==%1 goto doit
  4. if C==%1 goto doit
  5. if D==%1 goto doit
  6. if E==%1 goto doit
  7. if F==%1 goto doit
  8. if G==%1 goto doit
  9. if H==%1 goto doit
  10. if I==%1 goto doit
  11. if J==%1 goto doit
  12. if K==%1 goto doit
  13. if L==%1 goto doit
  14. if M==%1 goto doit
  15. if N==%1 goto doit
  16. if O==%1 goto doit
  17. if P==%1 goto doit
  18. if Q==%1 goto doit
  19. if R==%1 goto doit
  20. if S==%1 goto doit
  21. if T==%1 goto doit
  22. if U==%1 goto doit
  23. if V==%1 goto doit
  24. if W==%1 goto doit
  25. if X==%1 goto doit
  26. if Y==%1 goto doit
  27. if Z==%1 goto doit
  28. if a==%1 goto doit
  29. if b==%1 goto doit
  30. if c==%1 goto doit
  31. if d==%1 goto doit
  32. if e==%1 goto doit
  33. if g==%1 goto doit
  34. if h==%1 goto doit
  35. if i==%1 goto doit
  36. if j==%1 goto doit
  37. if k==%1 goto doit
  38. if l==%1 goto doit
  39. if m==%1 goto doit
  40. if n==%1 goto doit
  41. if o==%1 goto doit
  42. if p==%1 goto doit
  43. if q==%1 goto doit
  44. if r==%1 goto doit
  45. if s==%1 goto doit
  46. if t==%1 goto doit
  47. if u==%1 goto doit
  48. if v==%1 goto doit
  49. if w==%1 goto doit
  50. if x==%1 goto doit
  51. if y==%1 goto doit
  52. if z==%1 goto doit
  53. goto goof1
  54. :doit
  55. if exist %1:\ams\amsfaaaa.dbf goto goof2
  56. cls
  57. ECHO.
  58. ECHO                    ACTION MANAGEMENT SYSTEM INSTALLATION
  59. ECHO.
  60. ECHO.
  61. ECHO                    Welcome to the Action Management System!
  62. ECHO.
  63. ECHO     This batch file installs the Action Management System.  It will create
  64. ECHO  a directory, \AMS, on disk drive %1 which you have designated.  It will then
  65. ECHO  install the program files in the new directory.  A batch file named AMS.BAT
  66. ECHO  will be placed in the root directory to start AMS.  Finally it will start
  67. ECHO  AMS and ask a few questions to configure the program for your computer
  68. ECHO  system and then enter the AMS program.  The AMS program may be started from
  69. ECHO  the DOS prompt by typing the following:
  70. ECHO.
  71. ECHO.                                   AMS
  72. ECHO.
  73. ECHO  If you want to terminate the installation process press (Ctrl) and (C) to
  74. ECHO  exit to DOS otherwise press any other key to continue.
  75. ECHO.
  76. ECHO.
  77. ECHO.
  78. PAUSE
  79. CLS
  80. ECHO.
  81. ECHO.
  82. ECHO            THE ACTION MANAGEMENT SYSTEM IS BEING INSTALLED.
  83. @ REM ---Installation routine
  84. md %1:\ams
  85. copy amss.exe %1:\ams
  86. copy amsf.dbf %1:\ams\amsfaaaa.dbf
  87. copy amsf.dbf %1:\ams\amsfhhhh.dbf
  88. copy amsp.dbf %1:\ams\amsfpppp.dbf
  89. copy amst.dbf %1:\ams\amsftttt.dbf
  90. copy amsw.dbf %1:\ams\amsfaaa1.dbf
  91. copy amsw.dbf %1:\ams\amsfhhh1.dbf
  92. copy amsw.dbf %1:\ams\amsfppp1.dbf
  93. copy amsdem??.* %1:\ams
  94. copy amsfhelp.dbf %1:\ams\amsfhelp.dbf
  95. if exist %1:\ams\stdfw001.dbf goto dicams
  96. copy stdfw00?.dbf %1:\ams\amsfw00?.dbf
  97. goto dic
  98. :dicams
  99. ren %1:\ams\stdfw00?.dbf amsfw00?.dbf
  100. :dic
  101. copy ams.ico %1:\ams
  102. copy ams.pif %1:\ams
  103. copy ams.bat %1:\
  104. %1:
  105. cd %1:\ams
  106. AMSS.EXE
  107. if exist %1:\ams\config.ams goto config
  108. cd \
  109. cls
  110. ECHO.
  111. ECHO.
  112. ECHO          THE ACTION MANAGEMENT SYSTEM HAS BEEN SUCCESSFULLY INSTALLED.
  113. goto end
  114. @ REM ---Goof 1 - No Target drive designated
  115. :goof1
  116. cls
  117. ECHO.
  118. ECHO                    ACTION MANAGEMENT SYSTEM INSTALLATION
  119. ECHO.
  120. ECHO.
  121. ECHO.
  122. ECHO     This batch file installs the Action Management System.  To start the
  123. ECHO  installation process you must designate a drive into which AMS will be
  124. ECHO  installed.  This is accomplished by entering the install command followed
  125. ECHO  by the letter designating the drive into which AMS to to be installed.
  126. ECHO  To install AMS on drive C and the installation enter the following
  127. ECHO  command at the DOS prompt:
  128. ECHO.
  129. ECHO                            INSTALL C
  130. ECHO.
  131. ECHO.
  132. PAUSE
  133. CLS
  134. goto end
  135. @ REM ---Goof 2 - AMS already installed on target
  136. :goof2
  137. cls
  138. ECHO.
  139. ECHO                    ACTION MANAGEMENT SYSTEM INSTALLATION
  140. ECHO.
  141. ECHO.
  142. ECHO.
  143. ECHO     Disk drive %1 was designated as the drive onto which AMS is to be
  144. ECHO  install however AMS is already installed on %1 drive.  If AMS is
  145. ECHO  being updated the program may be updated on drive C for example by
  146. ECHO  entering:
  147. ECHO.
  148. ECHO                        UPDATE  C
  149. ECHO.
  150. ECHO  The update process will preserve your current data files but update
  151. ECHO  the program files.   Otherwise select another drive or erase the AMS
  152. ECHO  files on drive %1 and start the install program again.
  153. ECHO.
  154. ECHO.
  155. PAUSE
  156. CLS
  157. goto end
  158. :config
  159. copy %1:\config.sys %1:\config.old
  160. copy %1:\ams\config.ams %1:\config.sys
  161. erase %1:\ams\config.ams
  162. CLS
  163. ECHO.
  164. ECHO                    ACTION MANAGEMENT SYSTEM INSTALLATION
  165. ECHO.
  166. ECHO.
  167. ECHO.
  168. ECHO     The Action Management System files have been installed on disk drive %1.
  169. ECHO  Also the CONFIG.SYS file has been updated.  You must now reboot your
  170. ECHO  computer.  After rebooting your computer start AMS by entering:
  171. ECHO.
  172. ECHO                             AMS
  173. ECHO.
  174. ECHO  After restarting AMS you will be asked to answer a few questions to
  175. ECHO  complete the installation process.
  176. ECHO.
  177. ECHO.
  178. PAUSE
  179. CLS
  180. goto end
  181. :end
  182. @echo on
  183.